require 'hkmule.rb'

l = open('list.txt','r').readlines
out = open('hk.txt','w')
l.each{|cname|
	cname=cname.chop
	
	print "\n",cname
	g = hkmule(cname).join(',')
	i = Iconv.new 'utf-8','gb2312'
	cname = i.iconv(cname)
	i.close
	out.print(cname,':',g)
	out.print "\n"
	print 'g = empty' if g==''
}
